package com.chixing.day07_adstract.prototype;

public class Product {
    private int proId;
    private String proName;
    private float proPrice;

    public Product(int id,String name,float price){
        this.proId=id;
        this.proName=name;
        this.proPrice=price;

    }

    public Product() {

    }


    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public float getProPrice() {
        return proPrice;
    }

    public void setProPrice(float proPrice) {
        this.proPrice = proPrice;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Product product=new Product();
        this.proId=this.proId;
        this.proName=this.proName;
        this.proPrice=this.proPrice;

        return super.clone();
    }
}
